package com.app.android;

import android.content.Context;
import android.widget.Toast;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapView;
import com.google.android.maps.Overlay;



public class UserLocationOverlay extends Overlay {
	private Context mContext;
	
	public UserLocationOverlay(Context context) {
		mContext = context;
	}
       

	@Override
	public boolean onTap(GeoPoint point, MapView mapView) {
	
		int latitude = point.getLatitudeE6();
		int longitude = point.getLongitudeE6();
		
		String str = "["+latitude+","+longitude+"]";	
		System.out.println("Current location "+str);
		
		Toast.makeText(mContext, str, Toast.LENGTH_LONG).show();
		
		return true;
	}
	
	

}
